# -*- coding: utf-8 -*-
# @Time    : 2021/9/9 22:32
# @Author  : BrandonGT
# @FileName: 4_5_summing_a_million.py

one_million = [x for x in range(1, 1_000_001)]
print(min(one_million))
print(max(one_million))
print(sum(one_million))

value = 0
for one in one_million:
    value = value + one
    print(value)